<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	rcvrId			= Request("rcvrId")
	workSeq		= Request("workSeq")
	status			= Request("status")
	
	accessId = Request.Cookies("S_uid")
	if flag = "" then flag="Y" end if
	
	SQLTitle = "-- ■■■■  수신자 정보 수정 ■■■■"
	if status = "keep" then '## 장기보관 문서 저장
		SQL = "exec spSaveWorkBbsKeep " & workSeq & ", '" & rcvrId & "', '" & flag & "'"
	elseif status = "delete" then 
		SQL = "UPDATE tblWorkBbs SET flag='N' WHERE workSeq=" & workSeq
	else 
		SQL = "exec spSaveWorkBbsRcvr " & workSeq & ", '" & rcvrId & "', '" & status & "', '" & flag & "'"
	end if 

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>